Commit 74142c64 authored by 谢希宇's avatar 谢希宇

Aidea product update by Strive Date 2020-11-28

parent 58f22923
...@@ -46,11 +46,12 @@ public class InvoiceServiceImpl extends GenericServiceImpl<Invoice> implements I ...@@ -46,11 +46,12 @@ public class InvoiceServiceImpl extends GenericServiceImpl<Invoice> implements I
public JSONObject selectInvoiceDetail(InvoiceDetail invoiceDetail) { public JSONObject selectInvoiceDetail(InvoiceDetail invoiceDetail) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
MpAccountsEntity mpAccountsEntity = null; MpAccountsEntity mpAccountsEntity = null;
if (StringUtils.isNotBlank(invoiceDetail.getAppId())){ if (StringUtils.isNotBlank(invoiceDetail.getAppId())) {
mpAccountsEntity = mpAccountsService.getMpAccountsAppid(invoiceDetail.getAppId()); mpAccountsEntity = mpAccountsService.getMpAccountsAppid(invoiceDetail.getAppId());
}else{ } else {
jsonObject.put("errorNo","2"); jsonObject.put("errorNo","2");
jsonObject.put("errorMsg","appId不能为空"); jsonObject.put("errorMsg","appId不能为空");
return jsonObject;
} }
try { try {
......
...@@ -6,7 +6,6 @@ import com.cftech.invoice.service.InvoiceService; ...@@ -6,7 +6,6 @@ import com.cftech.invoice.service.InvoiceService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -25,7 +24,7 @@ public class MobileInvoiceController { ...@@ -25,7 +24,7 @@ public class MobileInvoiceController {
* @return * @return
*/ */
@RequestMapping(value = "/invoiceDetail", method = {RequestMethod.POST}, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/invoiceDetail", method = {RequestMethod.POST}, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public JSONObject invoiceDetail (@RequestBody InvoiceDetail invoiceDetail){ public JSONObject invoiceDetail (InvoiceDetail invoiceDetail){
return invoiceService.selectInvoiceDetail(invoiceDetail); return invoiceService.selectInvoiceDetail(invoiceDetail);
} }
......
...@@ -566,12 +566,14 @@ ...@@ -566,12 +566,14 @@
t.order_cancel AS orderCancel, t.order_cancel AS orderCancel,
t.status, t.status,
DATE_FORMAT(t.create_time,'%Y-%m-%d %h:%i:%s') AS createTime, DATE_FORMAT(t.create_time,'%Y-%m-%d %h:%i:%s') AS createTime,
DATE_FORMAT(t.order_time,'%Y-%m-%d %h:%i:%s') AS orderTime,
s.address_name AS addressName, s.address_name AS addressName,
a.areaname AS province, a.areaname AS province,
b.areaname AS city, b.areaname AS city,
c.areaname AS area, c.areaname AS area,
s.phone, s.phone,
s.address s.address,
t.confirm
FROM FROM
t_order t t_order t
LEFT JOIN t_order_details d ON t.id =d.order_id LEFT JOIN t_order_details d ON t.id =d.order_id
......
package com.cftech.order.job; package com.cftech.order.job;
import com.cftech.accounts.model.MpAccountsEntity;
import com.cftech.accounts.model.SysJob; import com.cftech.accounts.model.SysJob;
import com.cftech.accounts.service.JobService; import com.cftech.accounts.service.JobService;
import com.cftech.accounts.service.MpAccountsService;
import com.cftech.base.org.api.QyMsgUtil;
import com.cftech.base.org.model.Qyuser;
import com.cftech.base.org.service.QyuserService;
import com.cftech.core.sql.Conds; import com.cftech.core.sql.Conds;
import com.cftech.core.util.Constants; import com.cftech.core.util.Constants;
import com.cftech.core.util.SpringContextHolder; import com.cftech.core.util.SpringContextHolder;
...@@ -18,6 +23,7 @@ import org.quartz.JobExecutionException; ...@@ -18,6 +23,7 @@ import org.quartz.JobExecutionException;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -37,6 +43,11 @@ public class OrderFollowupRemindJob implements Job { ...@@ -37,6 +43,11 @@ public class OrderFollowupRemindJob implements Job {
} }
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Long accounts = Long.parseLong(SystemConfig.p.getProperty("QY_SEND_APPID"));
MpAccountsService mpAccountsService= SpringContextHolder.getBean(MpAccountsService.class);
MpAccountsEntity accountsEntity = mpAccountsService.getDetail(accounts);
Long agenId = Long.parseLong(accountsEntity.getAgentId());
String msg = SystemConfig.p.getProperty("QY_SEND_SERVICE_FOLLOWUP_MSG");
Conds orderConds = new Conds(); Conds orderConds = new Conds();
orderConds.equal("o.del_flag", Constants.DEL_FLAG_0); orderConds.equal("o.del_flag", Constants.DEL_FLAG_0);
...@@ -80,7 +91,13 @@ public class OrderFollowupRemindJob implements Job { ...@@ -80,7 +91,13 @@ public class OrderFollowupRemindJob implements Job {
Date nowDate = sdf.parse(sdf.format(new Date())); Date nowDate = sdf.parse(sdf.format(new Date()));
if (date.compareTo(nowDate) == 0) { if (date.compareTo(nowDate) == 0) {
QyuserService qyuserService = SpringContextHolder.getBean(QyuserService.class);
Qyuser serverUser = qyuserService.fetchById(order.getServiceId());
List<Qyuser> serviceUsers = new ArrayList();
serviceUsers.add(serverUser);
QyMsgUtil qyMsgUtil = SpringContextHolder.getBean(QyMsgUtil.class);
msg += msg + order.getNumber();
qyMsgUtil.sendText(accounts, false, serviceUsers, null, null, agenId, msg, false);
} }
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -46,6 +46,11 @@ public class OrderMobile { ...@@ -46,6 +46,11 @@ public class OrderMobile {
private String city; private String city;
/*区县*/ /*区县*/
private String area; private String area;
private String orderTime;
private String confirm;
private List<ProductMobile> ProductMobile; private List<ProductMobile> ProductMobile;
} }
...@@ -307,9 +307,9 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order ...@@ -307,9 +307,9 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
try { try {
Conds conds = new Conds(); Conds conds = new Conds();
conds.in("o.id",invoiceDto.getId().split(",")); conds.equal("o.id", invoiceDto.getId());
conds.equal("o.del_flag", Constants.DEL_FLAG_0); conds.equal("o.del_flag", Constants.DEL_FLAG_0);
List<Order> list = orderMapper.fetchSearchBy(conds, null, 0, 0, null); List<Order> list = this.fetchSearchBy(conds, null, 0, 0, null);
if(list.size() > 0){ if(list.size() > 0){
for (Order order : list){ for (Order order : list){
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
......
...@@ -66,7 +66,7 @@ public class MobileOrderController { ...@@ -66,7 +66,7 @@ public class MobileOrderController {
* @return * @return
*/ */
@RequestMapping(value = "/invoice", method = {RequestMethod.POST}, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/invoice", method = {RequestMethod.POST}, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public JSONObject invoice(@RequestBody InvoiceDto invoiceDto){ public JSONObject invoice(InvoiceDto invoiceDto){
return orderService.invoice(invoiceDto); return orderService.invoice(invoiceDto);
} }
} }
...@@ -104,6 +104,14 @@ ...@@ -104,6 +104,14 @@
> >
</div> </div>
<div class="form-group form-md-line-input col-md-12">
<label>产品编码</label>
<input type="text" required class="form-control pull-right"
value="$!{data.productNumber}" maxlength="500" required
name="productNumber" placeholder="剂型"
>
</div>
<div class="form-group form-md-line-input col-md-12"> <div class="form-group form-md-line-input col-md-12">
<label>通用名</label> <label>通用名</label>
<input type="text" required class="form-control pull-right" <input type="text" required class="form-control pull-right"
......
...@@ -287,6 +287,9 @@ ...@@ -287,6 +287,9 @@
<if test="format != null"> <if test="format != null">
format = #{format, jdbcType=VARCHAR}, format = #{format, jdbcType=VARCHAR},
</if> </if>
<if test="productNumber != null">
product_number = #{productNumber, jdbcType=VARCHAR},
</if>
<if test="approveNumber != null"> <if test="approveNumber != null">
approve_number = #{approveNumber, jdbcType=VARCHAR}, approve_number = #{approveNumber, jdbcType=VARCHAR},
</if> </if>
......
...@@ -107,7 +107,9 @@ public class ProductController { ...@@ -107,7 +107,9 @@ public class ProductController {
} else { } else {
product.setAccountsId(accountsId); product.setAccountsId(accountsId);
product.setDelFlag(false); product.setDelFlag(false);
product.setProductNumber(codingruleUtils.getNumber(accountsId,Product.class.getName())); if (StringUtils.isBlank(product.getProductNumber())) {
product.setProductNumber(codingruleUtils.getNumber(accountsId,Product.class.getName()));
}
product.setAccountsId(UserUtils.getmpaccounts(request)); product.setAccountsId(UserUtils.getmpaccounts(request));
product.setCreateBy(UserUtils.getUser().getId()); product.setCreateBy(UserUtils.getUser().getId());
product.setUpdateBy(UserUtils.getUser().getId()); product.setUpdateBy(UserUtils.getUser().getId());
......
...@@ -32,5 +32,10 @@ ...@@ -32,5 +32,10 @@
<artifactId>shipping-address-module</artifactId> <artifactId>shipping-address-module</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>com.cftech</groupId>
<artifactId>logistics-module</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -256,7 +256,6 @@ public class ExpressOrderInfoUtils { ...@@ -256,7 +256,6 @@ public class ExpressOrderInfoUtils {
retObj.put("trackingType", 1);//1:根据顺丰运单号查询 retObj.put("trackingType", 1);//1:根据顺丰运单号查询
JSONArray waybills = new JSONArray(); JSONArray waybills = new JSONArray();
//waybills.add("SF7444420632664");
retObj.put("trackingNumber", waybills);//顺丰运单号 retObj.put("trackingNumber", waybills);//顺丰运单号
retObj.put("methodType", 1);//标准路由查询 retObj.put("methodType", 1);//标准路由查询
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment