|
@@ -13,6 +13,7 @@ import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.LantoneProductServiceImpl;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
+import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.OppendedProductVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -40,6 +41,8 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
* @Date: 19:59 2018/9/18
|
|
|
*/
|
|
|
public Boolean addProducts(LantoneProduct lantoneProduct) {
|
|
|
+ lantoneProduct.setGmtCreate(DateUtil.now());
|
|
|
+ lantoneProduct.setCreator(UserUtils.getCurrentPrincipleID());
|
|
|
if (!save(lantoneProduct)) {
|
|
|
throw new CommonException(CommonErrorCode.FAIL);
|
|
|
}
|