XMTT преди 6 години
родител
ревизия
b839c4009d
променени са 1 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 13 0
      src/main/java/com/ekexiu/portal/platform/PlatformService.java

+ 13 - 0
src/main/java/com/ekexiu/portal/platform/PlatformService.java

@ -13,6 +13,7 @@ import org.jfw.apt.web.annotation.param.FieldParam;
13 13
import org.jfw.apt.web.annotation.param.JdbcConn;
14 14
import org.jfw.apt.web.annotation.param.RequestParam;
15 15
import org.jfw.apt.web.annotation.param.Upload;
16
import org.jfw.util.DateUtil;
16 17
import org.jfw.util.JpgUtil;
17 18
import org.jfw.util.PageQueryResult;
18 19
import org.jfw.util.StringUtil;
@ -560,6 +561,18 @@ public class PlatformService {
560 561
		return platformDao.queryPdf(con, pid, id, uid);
561 562
	}
562 563

564
	@Path("/demand/reply")
565
	@Post
566
	public int reply(@JdbcConn(true)Connection con,String pid,String id,String uid,String descp)throws SQLException {
567
		PlatformDemandProfessor pdf = new PlatformDemandProfessor();
568
		pdf.setId(id);
569
		pdf.setDescp(descp);
570
		pdf.setPid(pid);
571
		pdf.setUid(uid);
572
		String time = DateUtil.formatDateTime(System.currentTimeMillis());
573
		pdf.setAssTime(time);
574
		return platformDao.insert(con, pdf);
575
	}
563 576

564 577
	private void remove(List<UploadFile> list) {
565 578
		for (UploadFile file : list) {